//
//  CMScrollPageView.h
//  MoviesStore 2.0
//
//  Created by 周筱雯 on 15/6/4.
//  Copyright (c) 2015年 caimiao. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CMScrollPageView : UIView<UIScrollViewDelegate>
{
    NSInteger CMCurrentPage;
    BOOL CMNeedUseDelegate;
}


@property (nonatomic,retain) UIScrollView *CMScrollView;
/**
 *  标题数组
 */
@property (nonatomic, strong) NSMutableArray *items;
/**
 *  头部view
 */
@property (nonatomic, strong) UIView *headerView;
/**
 *  头部view背景颜色
 */
@property (nonatomic, strong) UIColor *colorOfheaderView;

/**
 *  标题按钮数组
 */
@property (nonatomic, strong) NSMutableArray *buttonArray;
/**
 *  标题记录按钮
 */
@property (nonatomic, strong) UIButton *recordButton;
/**
 *  移动标识view
 */
@property (nonatomic, strong) UIView *infoMoveView;
/**
 *  选择类目下标
 */
@property (nonatomic, assign) NSInteger selectedPageIndex;
/**
 *  是否隐藏分割线
 */
@property (nonatomic, assign) BOOL isShowOfLine;

/**
 *  是否隐藏移动标识
 */
@property (nonatomic, assign) BOOL isShowOfMoveView;

/**
 *  标题分割线view
 */
@property (nonatomic, strong) UIView *centerGreyLineView;

/**
 *  页面内容颜色
 */
@property (nonatomic, strong) UIColor *colorOfContent;

/**
 *  下分割线颜色
 */
@property (nonatomic, strong) UIColor *colorOfGreyLine;

/**
 *  内容view
 *
 *  @param CMViewArray 页面数组
 */

-(void)setContentOfView:(NSArray *)CMViewArray;

/**
 自定义页面frame

 @param CMViewArray 页面数组
 */
-(void)setZDYContentOfView:(NSArray *)CMViewArray;
/**
 自定义页面frame
 
 自定义frame + 移除
 
 @param CMViewArray 页面数组
 */
-(void)setZDYRemoveContentOfView:(NSArray *)CMViewArray;


/**
 *  手动设置移动到某页
 *
 *  @param index 页下标
 */
-(void)moveScrollowViewAthIndex:(NSInteger)index;

/**
 *  设置标头
 *
 *  @param firstItem 第一个
 *  @param otherItem 后N个。。。
 */
-(void)setItems:(NSString *)firstItem otherItems:(NSString *)otherItem,... NS_REQUIRES_NIL_TERMINATION;

@end
